package com.example.demo.dao;

import com.example.demo.bean.Reason;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface ReasonDao {
    /*查询数据*/
    @Select("select * from reason")
    List<Reason> reason();

    //*新增数据*/
    @Insert("insert into reason (type) values(#{type})")
    void addReason(String type);

    /*删除数据*/
    @Delete("delete from reason where numberID=#{numberID}")
    void deleteReason(String type);


    //*修改数据*//*
    @Update("update medical set type=#{type} where numberID=#{numberID}")
    void updateReason(Reason reason);

}
